home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene 96
/
Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso
/
graphics
/
artpacks
/
demns996
/
liz-opti.doc
< prev
next >
Wrap
Text File
|
1996-08-31
|
1KB
|
30 lines
─═══[∙]═══─ + -<[ dESCRiPTiON ]>- + ─═══[∙]═══─
Hi!
This is ELiZa about to bring you a silly piece of code I had to write for
my Intro since I couldn't find anything alike it somewhere.
Fo syntax help just type OPTiMiZE and enjoy :)
What it's useful for is when you rip texture or single graphics from games
(WADs or whatever). These are always based on a single game palette which
makes their color values spawn the gamut of available colors. The original
tile may include colors 16 and 45 but never color 30 or 178.
You have to convert the picture (using pcx2raw) to a pair of (NAME).RAW and
(NAME).PAL files. This code will optimize the color layout so that you have
for example 37 colors starting at a value you specify as base in a sequential
fashion. The RAW as well as PAL file will be written into a new pair of files.
The option "-o" is useful if you only want the part of the palette written
to disk that get's used by the raw data.
As I said, this code was written for my personal use but I figured it might
just as well be useful for the public. There are options like decrease color
count or the like in PaintShop Pro but they will dither and screw up the
palette.
Hope This Works Fine For You Guys ...
ELiZa^dEMONS